import websocket

try:
    ws = websocket.WebSocket()
    ws.connect("wss://spark-api.xf-yun.com/v1.1/chat")
    print("Connection established")
except Exception as e:
    print("Error:", e)
